#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
int main(){
    double a,b,c;
    while(cin>>a>>b>>c){
        double temp=b*b-4*a*c;
        if(a==0)cout<<"Not quadratic equation"<<endl;
        else{
            if(temp>0){
                double x1=(-b-sqrt(temp))/(2*a);
                double  x2=(-b+sqrt(temp))/(2*a);
                if(x1<x2){
                    printf("x1=%.2lf;x2=%.2lf\n",x1,x2);
                }else{
                    printf("x1=%.2lf;x2=%.2lf\n",x2,x1);
                }
            }else if(temp==0){
                printf("x1=x2=%.2lf\n",-b*1.0/(2*a));
            }else{
                if(-b*1.0/(2*a)==0){
                    printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n",b*1.0/(2*a),sqrt(-temp)*1.0/(2*a),b*1.0/(2*a),sqrt(-temp)*1.0/(2*a));
                }else{
                    printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n",-b*1.0/(2*a),sqrt(-temp)*1.0/(2*a),-b*1.0/(2*a),sqrt(-temp)*1.0/(2*a));
                }

            }
        }
    }
    return 0;
}
